package com.duoec.demo.rest.dto;

import com.duoec.demo.rest.enums.RoleTypeEnum;

import java.util.Date;
import java.util.Map;

/**
 * @author xuwenzhen
 * @date 2020/1/4
 */
public class Role {
    /**
     * 角色ID
     */
    private Integer id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色类型
     */
    private RoleTypeEnum type;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 测试
     */
    private Character character;

    /**
     * 子分类成员
     */
    private Map<String, User> members;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public RoleTypeEnum getType() {
        return type;
    }

    public void setType(RoleTypeEnum type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Character getCharacter() {
        return character;
    }

    public void setCharacter(Character character) {
        this.character = character;
    }

    public Map<String, User> getMembers() {
        return members;
    }

    public void setMembers(Map<String, User> members) {
        this.members = members;
    }
}
